import request from '@/utils/request'

export function getBanner(data) {
  return request({
    url: '/banner/getAllBanner',
    method: 'post',
    data
  })
}
export function addOrUpdBanner(data) {
  return request({
    url: '/banner/bannerAddOrUpd',
    method: 'post',
    data
  })
}
export function deleteBanner(id) {
  return request({
    url: `/banner/${id}`,
    method: 'delete',
  })
}
